package cn.iflags.Mall.vo;

import cn.iflags.Mall.pojo.Product;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 描述:
 *
 * @author Vincent Vic
 * create 2020-02-17 18:27
 */


public class ProductListVo {

    private Integer id;

    private Integer categoryId;

    private String name;

    private String subtitle;

    private String mainImage;

    private BigDecimal price;

    private Integer status;

    private String imageHost;

    public ProductListVo() {
    }

    public ProductListVo(Product product) {
        id = product.getId();
        categoryId = product.getCategoryId();
        name = product.getName();
        subtitle = product.getSubtitle();
        mainImage = product.getMainImage();
        System.out.println(categoryId+","+mainImage);
        price = product.getPrice();
        status = product.getStatus();
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImageHost() {
        return imageHost;
    }

    public void setImageHost(String imageHost) {
        this.imageHost = imageHost;
    }
}